package com.xsd.vistor.kpiDemo;

import java.util.Random;

/**
 * @Description: 员工抽象类
 * @Author: zhoufuzong
 * @Created: 2021-03-11 20:43:27
 * @Version: 1.1.0
 */

public abstract class Staff {

    public String name;
    public  int kpi; // 员工kpi

    public Staff(String name) {
        this.name = name;
        // 随机生成员工kpi
        this.kpi = new Random().nextInt(10);
    }


    public abstract void accept(Vistor vistor);

}
